using System.Collections.Generic;
using System.IO;
using SharePoint.Security.DocHelpers.ExportFormats;

namespace SharePoint.Security.ContentScanner.Engine.Analyzers
{
    public class ASPXDocumentScanner : BaseDocumentScanner
    {
        public ASPXDocumentScanner()
        {
            DocQualifier = "Web Page ASPX";
            Results = new List<ScanResult>();
        }
        public override List<ScanResult> Scan(string tempDocPath, List<Pattern> patterns, string fileFullPath)
        {
            var content = File.ReadAllText(tempDocPath);
            SearchRegExpString(content, patterns, fileFullPath, "", DocQualifier);

            return Results;
        }
    }
}